/*****************************************************************************/
/*                        >>> structs_commons.h <<<                          */
/*	Trabajo Practico 2do. cuatrimestre 2011                                  */
/*	TP:"FUSELAJE"                                                            */
/*	GRUPO: Reduce Fat Fast                                                   */
/*	INTEGRANTES: Emanuel Genovese                                            */
/*               Federico Gabriel Garcia                                     */
/*               Federico Pioli                                              */
/*               Esther Insfrain                                             */
/*               Luciano Bagattin                                            */
/*	Fecha UM:                                                                */
/*****************************************************************************/

#ifndef STRUCTS_COMMONS_H
#define STRUCTS_COMMONS_H

/*estructura de envio de mensajes */
struct stNIPC {
	int iPayloadDescriptor;
	int iType;
	char sDescriptorOriginal[16];
	unsigned short int sPayload_lenth;
//void *sPayload;
}__attribute__ ((__packed__));
typedef struct stNIPC stNIPC;

struct vecTrace {
	int iPista;
	int iSector;
}__attribute__ ((__packed__));
typedef struct vecTrace vecTrace;

struct t_stream {
	char *data;
	int length;
}__attribute__ ((__packed__));
typedef struct t_stream t_stream;

struct stTrace {
	unsigned int iSectorAct;
	unsigned int iSectorPedido;
	unsigned int iCantSectoresRecorridos;
	vecTrace *vec;
	float fTiempoConsumido;
	int iSectorSig;
	int iOrigen;/*CACHE:0 DISCO:1*/
}__attribute__ ((__packed__));

typedef struct stTrace stTrace;

struct stPEscrituraSector {
	int iSector;
	char info[512];
}__attribute__ ((__packed__));
typedef struct stPEscrituraSector stPEscrituraSector;

#endif /*STRUCTS_COMMONS_H*/
